import http from '@/utils/request'

//获取菜单列表
export async function getMenuListApi() {
  return await http.get("/menu/list")
}
//获取上级菜单
export async function getParentTreeApi() {
  return await http.get("/menu/plist")
}
//新增权限
export async function addMenuApi(parm) {
  return await http.post("/menu", parm)
}
//编辑权限
export async function editMenuApi(parm) {
  return await http.put("/menu", parm)
}
//修改状态
export async function editMenuStatusApi(parm) {
  return await http.put("/menu/status", parm)
}
//删除权限
export async function deleteMenuApi(parm) {
  return await http.delete("/menu", parm)
}
